package com.qcq.springcloud;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ：qcq
 * @date ：Created in 2020/11/28 13:59
 * @description：
 */
@RestController
public class FallbackController {

    @RequestMapping("fallbackTest")
    public Map<String, String> fallbackController() {
        Map<String, String> response = new HashMap<>();
        response.put("code", "502");
        response.put("msg", "服务超时");
        return response;
    }
}
